package com.carkeeper.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carkeeper.dto.EmployeeDTO;
import com.carkeeper.pojo.EmployeePO;
import com.carkeeper.vo.EmployeeQueryParamVO;

import java.util.List;

/*
 * @version : 1.0
 * @outhor : zwk
 * @data : Create in 2020-05-26
 * @description :
 */
public interface EmployeeService {

    /*
    保存或更新员工信息
     */
    Boolean saveAndUpdate(EmployeePO employeePO);
    /*
    删除员工
     */
    Boolean delete(Long id);
    /*
    id获取员工信息
     */
    EmployeePO findById(Long id);
    /*
    分页查询
     */
    Page<EmployeePO> findByPage(EmployeeQueryParamVO paramVO);
    /*
    获取员工集合
     */
    List<EmployeePO> list (EmployeeDTO employeeDTO);
    //判断
    //boolean selId(Long id);
    //boolean addAndUpdate(EmployeePO employeePO);

    EmployeePO login(String userName,String Password);

    EmployeePO loadUserById(Long id);

    EmployeePO loadUserByUsername(String username);

    List<EmployeePO> getUserListByIds(List<Long> ids);
}
